const Router = require('koa-router')
const app = new Router({ prefix: "/main/product" })
const { isslogin } = require("../../middleware/index")
const { getorder, setproductstatus, getuserandpri } = require('../../controller/main/product')
app.get('/getproduct', isslogin, getorder)
app.post('/setproductstatus', isslogin, setproductstatus)
app.get('/getuserandpri', isslogin, getuserandpri)
module.exports = app